package com.lap.analysis.source.builder;

import com.lap.analysis.source.entity.ClassInfo;
import com.lap.analysis.env.entity.Environment;

import java.util.List;

/**
 * 源文件构建组建
 *
 * @author Shuisheng Lao(劳水生)
 * @version 0.0.1
 */
public class SourceDirector {

  private final SourceBuilder builder;

  public SourceDirector(SourceBuilder builder) {
    this.builder = builder;
  }

  public List<ClassInfo> construct(Environment env) {
    builder.builderClass(env);
    return builder.context();
  }
}
